package cn.hd01.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hd01.repository.BankCardsRepository;
import cn.hd01.repository.entity.BankCards;
import cn.hd01.service.BankCardsService;

@Service
public class BankCardsServiceImpl extends BaseServiceImpl<BankCards, Integer> implements BankCardsService {

	private BankCardsRepository repository;

	@Autowired
	public BankCardsServiceImpl(BankCardsRepository repository) {
		super(repository);
		this.repository = repository;
	}

	@Override
	public BankCards findByBankCardBin(String bankCardBin) {
		return repository.findByBankCardBin(bankCardBin);
	}

}
